package cn.cloud.service;

import cn.cloud.dao.ItemCatMapper;
import cn.cloud.pojo.ItemCat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Cloud on 2017/9/24 0024.
 */
@Service
public class ItemCatServiceImpl extends BaseServiceImpl<ItemCat> implements ItemCatService {
    @Autowired
    private ItemCatMapper itemCatMapper;

    @Override
    public List<ItemCat> queryByParentId(Long parentId) {
        ItemCat record = new ItemCat();
        record.setParentId(parentId);
        return itemCatMapper.select(record);
    }
}
